package cloud.xiangyixiang.www.spring.boot.java.basics.service.impl;

import cloud.xiangyixiang.www.spring.boot.java.basics.service.IStudent;
import cloud.xiangyixiang.www.spring.boot.java.basics.service.ITeacher;

/**
 * <p>
 * IShoolImpl
 * </p>
 *
 * @author weixin
 * @date 2023/9/16 18:11
 */
public class ISchoolImpl implements IStudent, ITeacher {


    @Override
    public void teaching(String technology) {
        System.out.println("老师教学 " + technology);
    }

    @Override
    public void studying(String technology) {
        System.out.println("学生学习 " + technology);
    }

    @Override
    public void name(String name) {
        System.out.println("学生姓名：" + name);
    }

    @Override
    public void rest(int minute) {
        IStudent.super.rest(minute);
        ITeacher.super.rest(minute);
    }


}
